package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	Img   string  `json:"img" gorm:"type:varchar(255);not null; comment:'商品图片'"`
	Video string  `json:"video" gorm:"type:varchar(255);not null;comment:'商品视频'"`
	Name  string  `json:"name" gorm:"type:varchar(30);not null;comment:'商品名称'"`
	Nums  string  `json:"nums" gorm:"type:varchar(20);not null;comment:'商品编码'"`
	Intro string  `json:"intro" gorm:"type:varchar(255);not null;comment:'商品卖点'"`
	Price float64 `json:"price" gorm:"type:decimal(10,2);not null;comment:'价格'"`
}
